<template>
  <div class="auto">
    <div class="head">
      <div class="po">
        <div class="search">
          <div class="center">
            <input
              type="text"
              placeholder=""
              style="
                width: 15.125rem;
                height: 2.0625rem;
                border-style: none;
                outline-style: none;
              "
            />
            <div class="sou">
              <a href=""><img src="../../imgytt/sousuo.png" alt="" /></a>
            </div>
          </div>
        </div>
        <div class="serimg">
          <button
            @click="fun5"
            style="
              border: none;
              width: 4.6875rem;
              height: 2.5rem;
              position: absolute;
            "
          >
            取消
          </button>
        </div>
      </div>
    </div>
    <div class="big">
      <div class="two" v-for="(item, index) in infor" :key="index">
        <div class="two-child1">
          <img src="../../assets/images/jilu.png" alt="" />
        </div>
        <div class="two-child2">
          <li>{{ item.inst }}</li>
        </div>
      </div>
      <div class="huan">
        <h4
          style="
            text-align: center;
            width: 25.9375rem;
            height: 3.125rem;
            line-height: 3.125rem;
            background: #ffffff;
            margin-top: .125rem;
            opacity: 0.529;
          "
        >
          全部记录
        </h4>
      </div>
    </div>
    <div class="middle">
      <div class="headler">
        <h2 style="">猜你想搜</h2>
      </div>
      <div class="infor">
        <div class="three" v-for="(item, index) in infor2" :key="index">
          <li>{{ item.name }}</li>
        </div>
      </div>
      <div class="text">
        <div class="revert">
          <h4
            style="
              text-align: center;
              opacity: 0.529;
              color: #000000;
              font-weight: bold;
            "
          >
            换一换
          </h4>
          <img src="../../assets/images/huan.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "child-i",
  setup() {},
};
</script>
<script setup>
let infor = [
  {
    inst: "小猫身上有跳蚤怎么办",
  },
  {
    inst: "刘匆匆的猫",
  },
];
let infor2 = [
  {
    name: "带小猫怎么拍照",
  },
  {
    name: "王吉力的猫",
  },
  {
    name: "小雷的猫",
  },
];
</script>
<style lang="less" scoped>
.auto {
  margin: 0 auto;
  width: 26.5625rem;
}
.head {
  width: 26.5625rem;
  height: 5rem;
  margin: 0 auto;
  background-color: #ffffff;
  .po {
    position: relative;
    padding: 1.125rem;
  }
}
.huan {
  opacity: 0.529;
  font-size: .75rem;
  color: #000000;
  font-weight: bold;
  font-family: "Ping Fang  SC  Bold";
}
.search {
  box-sizing: boder-box;
  position: relative;
  display: inline-block;
  width: 17.5625rem;
  height: 2.6875rem;
  padding: 0 1.0625rem;
  border-radius: 1.375rem;
  background-color: #ffffff;
  border: .0625rem solid #ff3e74;
  .center {
    line-height: 2.6875rem;
  }
  p {
    line-height: 2.6875rem;
    display: inline-block;
    font-size: .875rem;
    color: #000000;
    font-weight: bold;
    font-family: "Ping Fang  SC  Bold";
  }
  .sou {
    float: right;
    width: 2.1875rem;
    height: 1.875rem;
    background-size: cover;
    margin-top: .125rem;
    border-radius: 50%;
    img {
      float: right;
      width: 1.875rem;
      height: 1.875rem;
      background-size: cover;
      margin-top: .125rem;
    }
  }
}
button:active {
  width: 1.25rem;
  height: 1.25rem;
}
.serimg {
  float: right;
  position: relative;
  width: 4.375rem;
  height: 2.6875rem;
  font-size: 1.875rem;
  button {
    background: #ffffff;
    opacity: 0.549;
    font-size: 1rem;
    color: #000000;
    font-weight: bold;
    font-family: "Ping Fang  SC  Bold";
  }
}
.big {
  position: relative;
  width: 26.5625rem;
  margin: 0 auto;
  color: #000000;
  font-weight: bold;
  font-family: "Ping Fang  SC  Bold";
  .two {
    width: 100%;
    height: 3.125rem;
    line-height: 3.125rem;
    background: #ffffff;
    margin-top: .125rem;
    .two-child1 {
      width: 1.875rem;
      height: 3.1875rem;
      float: left;
      img {
        width: 1.25rem;
        height: 1.125rem;
        margin-top: 1rem;
        margin-left: .3125rem;
      }
    }

    .two-child2 {
      float: left;
      position: absolute;
      left: 2.9375rem;
      height: 3.1875rem;
      width: 22.5rem;
      li {
        font-size: 1rem;
        color: #000000;
        font-weight: bold;
        font-family: "Ping Fang  SC  Bold";
      }
    }
  }
}
.middle {
  width: 26.5625rem;
  margin: 0 auto;
  position: relative;
  top: 2.5625rem;
  // border: .0625rem solid blue;
  .headler {
    padding-left: .625rem;
    width: 25.9375rem;
    height: 2.8125rem;
    // margin-top: .125rem;
    // border: .0625rem solid rgb(179, 31, 63);
    h2 {
      font-size: 1rem;
      color: #000000;
      font-weight: bold;
      font-family: "Ping Fang  SC  Bold";
    }
  }
  .infor {
    .three {
      display: inline-block;
      width: 12rem;
      opacity: 0.529;
      font-size: .875rem;
      color: #000000;
      font-weight: bold;
      font-family: "Ping Fang  SC  Bold";
      padding-left: .625rem;
      li {
        margin-top: .25rem;
      }
    }
  }
  .text {
    width: 25.9375rem;
    margin-top: 3.125rem;
  }
  .revert {
    position: relative;
    width: 4.0625rem;
    margin: 0 auto;
    margin-top: .125rem;
    // border: .0625rem solid rgb(179, 31, 63);
    h4 {
      opacity: 0.529;
      font-size: .75rem;
      color: #000000;
      font-weight: bold;
      font-family: "Ping Fang  SC  Bold";
    }
    img {
      position: absolute;
      right: 0;
      bottom: 10%;
      width: .625rem;
      height: .625rem;
      // float: right;
      // border: .0625rem solid rgb(179, 31, 63);
      opacity: 0.529;
    }
  }
}
</style>